<?php


namespace app\api\model\v1;


class UserStudy extends \think\Model
{
    protected $table = 'fa_user_study';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}